package br.com.autoleal.cliente.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

@Entity
@Table(name = "pessoa_fisica")
@NamedQueries({
	@NamedQuery(name = "PessoaFisica.buscarTodos", query = "SELECT pf FROM PessoaFisica pf"),
	@NamedQuery(name = "PessoaFisica.buscarCodigoCpfNome", query = "SELECT pf FROM PessoaFisica pf WHERE pf.codigo LIKE :codigo OR pf.cpf LIKE :cpf OR upper(pf.nome) LIKE :nome")
})
public class PessoaFisica extends Cliente implements Serializable {

	private static final long serialVersionUID = -6180940963966524013L;

	@Column(name = "nome", nullable = false)
	private String nome;
	
	@Column(name = "cpf",  nullable = false)
	private String cpf;

	public String getNome() {
		return nome;
	}

	public void setNome(String nome) {
		this.nome = nome;
	}

	public String getCpf() {
		return cpf;
	}

	public void setCpf(String cpf) {
		this.cpf = cpf;
	}

}
